package com.hunttown.common.dao.sharding;

import com.hunttown.common.sharding.client.router.Router;
import java.util.Map;

public class ShardingRouters {
    private Map<String, Router> routerMap;

    public ShardingRouters() {
    }

    public void setRouterMap(Map<String, Router> routerMap) {
        this.routerMap = routerMap;
    }

    public Router getRouter(String logicTableName) {
        return (Router)this.routerMap.get(logicTableName);
    }
}